<div class="header_menu">
    <div class="container">
        <div class="header-nav clearfix">
            <?php echo $this->partial('shop/layout/headerMenu'); ?>
        </div>
    </div>
</div>
</div>
<div class="container breadcrumbs">
    <a href="<?php echo $this->url('shop'); ?>"><?php echo $this->translate('首页'); ?></a>
    <span class="sep">/</span><span><?php echo $this->translate('账户余额提现'); ?></span>
</div>
<div class="container">
    <div class="uc-full-box">
        <div class="row">
            <div class="span4">
                <?php echo $this->partial('shop/partial/home/leftMenu'); ?>
            </div>
            <div class="span16">
                <div class="xm-line-box uc-box">
                    <h3 class="right-more-title">
                        <?php echo $this->translate('账户余额'); ?> [<font color="#dd4b39"><?php echo $this->shopCurrencyFormat($this->userInfo->getUserMoney()); if(!$this->sameCurrency) echo ' ('.$this->frontCurrency($this->userInfo->getUserMoney()).')'; ?></font>]
                    </h3>
                    <div class="box-hd-more">
                        <div class="span16">
                            <div class="span14 pull-left left-menu-more">
                                <div class="uc-order-list-type">
                                    <a href="javascript:;" class="current"><?php echo $this->translate('账户余额提现记录'); ?></a>
                                </div>
                            </div>
                            <div class="span2 pull-right">
                                <a href="<?php echo $this->url('home-user-balance', ['action' => 'addUserWithdraw']); ?>" class="btn btn-primary btn-small"><?php echo $this->translate('提现'); ?></a>
                            </div>
                        </div>
                    </div>
                    <div class="box-bd">
                        <?php echo $this->partial('shop/message'); ?>
                        <?php
                        if ($this->userWithdrawList->getCurrentItemCount() > 0){ ?>
                            <table class="table table-bordered table-hover" style="margin-top: 15px;">
                                <thead>
                                <tr>
                                    <th width="10%"><?php echo $this->translate('金额'); ?></th>
                                    <th width="10%"><?php echo $this->translate('状态'); ?></th>
                                    <th width="20%"><?php echo $this->translate('申请时间'); ?></th>
                                    <th width="20%"><?php echo $this->translate('审核时间'); ?></th>
                                    <th width="40%"><?php echo $this->translate('备注'); ?></th>
                                </tr>
                                </thead>
                                <?php foreach ($this->userWithdrawList as $withdrawValue) { ?>
                                    <tr>
                                        <td><?php echo $this->shopCurrencyFormat($withdrawValue->getMoneyChangeNum(), null, $withdrawValue->getCurrencyCode()); ?></td>
                                        <td><?php echo $this->shopHelper()->getWithdrawState($withdrawValue->getWithdrawState()); ?></td>
                                        <td><?php if(!empty($withdrawValue->getAddWithdrawTime())) echo $this->shopDateFormat()->shopWithdrawTime($withdrawValue->getAddWithdrawTime()); ?></td>
                                        <td><?php if(!empty($withdrawValue->getWithdrawFinishTime())) echo $this->shopDateFormat()->shopWithdrawTime($withdrawValue->getWithdrawFinishTime()); ?></td>
                                        <td><?php echo $this->escapeHtml($withdrawValue->getWithdrawInfo()); ?></td>
                                    </tr>
                                <?php } ?>
                            </table>
                            <div>
                                <?php echo $this->paginationControl($this->userWithdrawList, 'Sliding', 'shop/page', ['route' => 'home-user-balance', 'params' => ['action' => 'userWithdraw']]); ?>
                            </div>
                        <?php } else { ?>
                            <?php echo $this->translate('暂无记录!'); ?>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>